﻿using System;
using System.Windows.Forms;
using ProxyTool.Services;

namespace ProxyTool.Forms
{
    public partial class ServiceExceptionForm : Form
    {
        public ServiceExceptionForm(ServiceException serviceException)
        {
            InitializeComponent();
            if (serviceException != null)
            {
                this.txtServiceName.Text = serviceException.ServiceName;
                this.txtErrMsg.Text = serviceException.Message;
                this.txtStackTraceString.Text = serviceException.StackTraceString;
            }
        }

        private void btnSubmit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            // this.Close();
        }
    }
}